{include file="public/header" /}
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a href="javascript:;">网站配置</a></li>
        <li><a href="{:url('config/add', array('action' => 'add'))}">添加配置</a></li>
    </ul>

    <form class="form-horizontal js-ajax-form" method="post" action="{:url('config/index')}">
        <div class="well form-inline margin-top-20">
            关键字:
            <input type="text" class="form-control" name="keyword" style="width: 200px;"
                   value="{$params['keyword']|default=''}" placeholder="请输入关键字...">　
            分组:
            <select class="form-control" name="group" style="width: 200px;">
                <option value=''>全部</option>
                <option value='PC' {if condition="$params['group'] eq 'PC'"}selected="selected" {/if} >PC</option>
                <option value='WAP'  {if condition="$params['group'] eq 'WAP'"}selected="selected" {/if} >WAP</option>
            </select>
            <input type="submit" class="btn btn-primary" value="搜索"/>
        </div>

        <table class="table table-hover table-bordered table-list">
        <thead>
        <tr>
            <th>ID</th>
            <th>名称</th>
            <th>变量</th>
            <th>变量值</th>
            <th>分组</th>
            <th>修改时间</th>
            <th>创建时间</th>
            <th>操作</th>
        </tr>
        </thead>
        {foreach name="list" item="vo"}
            <tr>
                <td>{$vo.id}</td>
                <td>{$vo.title}</td>
                <td>{$vo.key}</td>
                <td>{$vo.value}</td>
                <td>{$vo.group}</td>
                <td>{$vo.modifyTime}</td>
                <td>{$vo.createTime}</td>
                <td>
                    <a href="{:url('config/edit',array('action' => 'edit', 'id'=>$vo['id']))}">编辑</a>
                </td>
            </tr>
        {/foreach}
    </table>
    </form>
</div>
<script src="/static/admin/js/admin.js"></script>
</body>
</html>